package com.malljelly.study.load;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import sdk.SDKConfig;


/**
 * 用于加载根路径下的银联支付配置文件
 */
@Component
@Slf4j
public class AutoLoadRunner implements CommandLineRunner {

	@Override
	public void run(String... args) throws Exception {
		SDKConfig.getConfig().loadPropertiesFromSrc();
		log.info(">>>>>>>>>>>>>>>服务启动执行，执行加载数据等操作<<<<<<<<<<<<<");
	}

}